package example.demo.bean;

import com.alibaba.fastjson.JSON;

import java.time.LocalDateTime;
import java.util.Date;

public class JSONTest {
    public static void main(String[] args) {
        User user = new User();
        user.setUsername("懒羊羊");
        user.setEmail("12347@qq.com");
        user.setPassword("123kk");
        user.setBirthday(new Date());
        user.setLocalDateTime(LocalDateTime.now());
        System.out.println(JSON.toJSONString(user));
        System.out.println(user);
    }
}
